<?php

namespace App\Module\Api\Validator;

use App\System\Base\Validator\BaseValidator;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class RegisterSubmitValidator extends BaseValidator
{
    protected $rules = [
        'q.a' => 'required|integer|between:1,2',
        'q.nickname' => 'required',
        'q.mobile' => 'required|integer',
        'q.smsId' => 'required',
        'q.smsCode' => 'required',
        'q.password' => 'required',
    ];

    protected $messages = [

    ];

    protected $attributes = [
        'q.a' => '请求类型',
        'q.nickname' => '昵称',
        'q.mobile' => '手机号',
        'q.smsId' => '短信表id',
        'q.smsCode' => '短信验证码',
        'q.password' => '密码',
    ];
}
